package org.groupg.practice.data;

// 轻量级数据记录对象
public class DataRecord {

    private int id;
    private long timestamp;
    private double value;
    private String label;

    public DataRecord(int id, long timestamp, double value, String label) {
        this.id = id;
        this.timestamp = timestamp;
        this.value = value;
        this.label = label;
    }

    public int getId() {
        return id;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public double getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public void setLabel(String label) {
        this.label = label;
    }

}
